package com.hs.srm.admin.modules.ssess.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.service.IService;
import com.hs.srm.admin.modules.ssess.entity.SsessEntity;
import com.hs.srm.admin.modules.ssess.vo.SsessVO;
import com.hs.srm.admin.modules.vendor.vo.SimpleVendorInfoVO;
import com.hs.srm.common.utils.PageUtils;


/**
 * @author yanfei
 *
 * @date 2019年3月25日
 */
public interface SsessService extends IService<SsessEntity> {
	
	PageUtils queryPage(Map<String, Object> params);
	
	//根据供应商编码查询对应的供应商平均分(后续查询查询条件要为供应商+物料号+工厂)
	//查询上个月的评估
	
	SsessEntity findByCodeAndfactory(String vendorcode,String factory);
	
	SsessEntity findByCodeAndfactoryAnddate(String vendorcode,String factory,Date begindate,Date enddate);
	
	SsessEntity findByVendorCode(String vendorcode);
	
	int findCount(String vendorcode,String factory);
	
	//联合查询
	List<SsessVO> findBySsessAndQuota(Date begindate,Date enddate);
	

	SsessEntity findBySesss(String vendorcode,String factory,String materialCode);
	
}
